<template>
  <a href="url">
    <slot :slotData="website">
      {{ website.subTitle }}
      <!-- 默认值显示subTitle -->
    </slot></a
  >
</template>

<script>
export default {
  props: ["url"],
  data() {
    return {
      website: {
        url: "http://wangEditor.com",
        title: "wangEditor",
        subTitle: "轻量级富文本编辑器",
      },
    };
  },
};
</script>
